package com.xindacloud.sms.portal.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.xindacloud.sms.portal.dto.SmsApiDTO;
import com.xindacloud.sms.portal.service.ISmsApiCategoryService;
import com.xindacloud.sms.portal.service.ISmsApiService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * <p>
 * 系统主菜单表 前端控制器
 * </p>
 *
 * @author czc
 * @since 2019-10-08
 */
@Api(tags = {"API文档接口"})
@RestController
@RequestMapping("/api/v1/sms-api")
public class SmsApiController {
	
	@Autowired
	private ISmsApiCategoryService smsApiCategoryService;
	
	@Autowired
	private ISmsApiService smsApiService;

	@ApiOperation(value = "获取api类别")
	@PostMapping(value = "/getSmsApiCategoryList")
	public Object getSmsApiCategoryList() {
	    return smsApiCategoryService.getSmsApiCategoryList();
	}
	
	@ApiOperation(value = "获取api文档内容")
	@PostMapping(value = "/getSmsApiList")
	public Object getSmsApiList(@RequestBody SmsApiDTO smsApiDTO) {
	    return smsApiService.getSmsApiList(smsApiDTO);
	}
	

}
